home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Periodicals / develop / develop 10 code / LWFontUtility / UTILInstall / UTILInstall.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-08  |  2.7 KB  |  55 lines  |  [TEXT/MPS ]

  1. /****************************************************************************************
  2.  
  3. UTILInstall.h - Includes for UTILInstall
  4.  
  5. Written by Bryan K. Ressler (Beaker), 10/8/91
  6.  
  7. ****************************************************************************************/
  8.  
  9. #include "std.h"
  10.  
  11. /****** Resource types *****************************************************************/
  12. #define UTILSPECTYPE    'USPC'        /* Resource type for a UTIL Specification resource */
  13. #define UTILTYPE        'UTIL'        /* Resource type for a UTIL */
  14. #define DLOGTYPE        'DLOG'        /* Resource type for dialog templates */
  15. #define ALRTTYPE        'ALRT'        /* Resource type for alert templates */
  16.  
  17. /****** Resource IDs *******************************************************************/
  18. #define ERRSTRSID        128            /* 'STR#' - Error strings */
  19. #define INSTALLSTRSID    129            /* 'STR#' - UTILInstall misc strings */
  20. #define ERRALRTID        128            /* 'ALRT' - Error alert */
  21. #define ABOUTALRTID        130            /* 'ALRT' - About box */
  22. #define SUCCESSALRTID    131            /* 'ALRT' - Successful */
  23. #define LOCATEDLOGID    129            /* 'DLOG' - Locate description */
  24. #define UPDATINGDLOGID    132            /* 'DLOG' - Updating LWFU dialog */
  25.  
  26. /****** Install string numbers *********************************************************/
  27. #define LOCATELWFU        1            /* Locate the LaserWriter Font Utility */
  28. #define LOCATEUTIL        2            /* Locate the UTIL file */
  29.  
  30. /****** Error alert string numbers *****************************************************/
  31. #define BADENV            1            /* Need System 6.0 or later */
  32. #define NOOPENUTIL        2            /* Couldn't open UTIL file */
  33. #define BADFORMAT        3            /* Bad UTIL file format */
  34. #define NOUTILSPEC        4            /* Unable to find UTIL specification in UTIL file */
  35. #define NOUTIL            5            /* Unable to find the UTIL */
  36. #define NOOPENLWFU        6            /* Couldn't open LWFU for read/write */
  37. #define BADINSTALL        7            /* Error occurred while copying resources */
  38. #define ALREADYTHERE    8            /* There's another UTIL with the same UTIL name */
  39.  
  40. /****** Miscellaneous constants ********************************************************/
  41. #define MINSYSTEM        0x0600        /* Minimum System we'll run under */
  42. #define BOTTOMOFFSET    11            /* Offset from bottom of "description" dialog */
  43. #define LWFUCREATOR        'LWFU'        /* Creator for LaserWriter Font Utility */
  44. #define BUSYATTRIB        0x80        /* The mask to find out whether a file is busy */
  45. #define UTILRESBASE        16000        /* Base for UTIL's resource space */
  46. #define UTILIDBASE        128            /* Base for UTIL IDs */
  47. #define UTILSPACESIZE    100            /* Number of IDs allocated to each UTIL */
  48. #define RESSPACEOFFSET    2            /* Offset into UTIL resource to ResSpace */
  49.  
  50. /****** Types **************************************************************************/
  51. typedef struct {
  52.     ResType    type;
  53.     short    id;
  54. } ResSpec;
  55.